<include target="_header.html" />
<load target="js/translation.js" />
<load target="js/script.js" />
<load target="js/trans_manage.js" />
<div class="translation">
	<h2 cond="$logged_info->is_admin == 'Y' && $scope == 'myProjects'" class="m_title">{$lang->my_project_list}</h2>
	<h2 cond="$logged_info->is_admin != 'Y' || $scope != 'myProjects'" class="m_title">{$lang->all_project_list}</h2>
	<div class="project_name">
		<a href="{getUrl('','mid', $mid)}">{$module_info->translation_title?$module_info->translation_title:$module_info->mid}</a> &gt;&gt;
		<strong>
			<block cond="$logged_info->is_admin == 'Y' && $scope == 'myProjects'">{$lang->my_project_list}</block><block cond="$logged_info->is_admin != 'Y' || $scope != 'myProjects'">{$lang->all_project_list}</block>
		</strong>
	</div>
	
	<div class="lang_select">
		<div class="selected off"><span class="ico lang_{$select_lang}">{$lang_supported_list[$select_lang]}</span></div>
		<ul class="lang_list">
		<li loop="$lang_supported_list => $lang_key, $langSup"><a href="{getUrl('','mid',$mid,'act','dispTranslationProjectList','member_srl', $member_srl, 'select_lang',$lang_key)}" class="lang_{$lang_key}">{$langSup}</a></li>
		</ul>
	</div>

	<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
		<p>{$XE_VALIDATOR_MESSAGE}</p>
	</div>

	<div class="info_tbl project">
	<table cellpadding="0" cellspacing="0">
	<colgroup>
	<col width="12%" />
	<col width="25%"/>
	<col cond="!$member_srl" />
	<col width="12%"/>
	<col width="12%"/>
	<col cond="$logged_info && $logged_info->is_admin == 'Y'" width="15%"  />
	</colgroup>
	<thead>
	<tr>
	<th scope="col">{$lang->project}</th>
	<th scope="col">{$lang->percentage}</th>
	<th cond="!$member_srl" scope="col">{$lang->summary}</th>
	<th scope="col"><a href="{getUrl('','mid',$mid,'act','dispTranslationProjectList','member_srl', $member_srl, 'select_lang',$select_lang,'sort_target','files_count','sort_type',$sortType)}">{$lang->file_numbers}</a></th>
	<th scope="col"><a href="{getUrl('','mid',$mid,'act','dispTranslationProjectList','member_srl', $member_srl, 'select_lang',$select_lang,'sort_target','last_update','sort_type',$sortType)}">{$lang->recent_update}</a></th>
	<th cond="$logged_info && $logged_info->is_admin == 'Y'" scope="col">{$lang->manage}</th>
	</tr>
	</thead>
	<tbody>
	<tr loop="$project_list => $project_key, $project">
	<td class="first_cell"><a href="{getUrl('','mid',$mid,'act','dispTransProLangInfo','translation_project_srl',$project->translation_project_srl,'scope', $scope)}">{$project->project_name}</a></td>
	<td>
		<div cond="!$project->no_files" class="track">
			<span cond="$project->perc_approved > 0" class="color_1">{$project->perc_approved}%</span><span cond="$project->perc_notApproved > 0" class="color_2">{$project->perc_notApproved}%</span><span cond="$project->perc_notTranslated > 0" class="color_3">{$project->perc_notTranslated}%</span>
		</div>
		<div cond="$project->no_files" class="track"><span >no files</span></div>
	</td>
	<td cond="!$member_srl"  class="summary">{$lang->translated} {$project->trans_count}, {$lang->need_approve} {$project->no_approved_count}</td>
	<td>{$project->file_count}</td>
	<td>{$project->last_update}<block cond="!$project->last_update">No update</block></td>
	<td cond="$logged_info->is_admin == 'Y'"><a id="modify_p_{$project_key}" cond="$project->member_srl == $logged_info->member_srl" href="#proWindow" class="btn btn_p_modify" data="{$project->translation_project_srl}">modify</a><a id="delete_p_{$project_key}" cond="$project->member_srl == $logged_info->member_srl"  href="#proWindow" class="btn btn_p_delete" data="{$project->translation_project_srl}" >delete</a></td>
	</tr>
	</tbody>
	</table>
	</div>
	
	<div cond="$logged_info->is_admin == 'Y'" class="btn_add">
		<a href="#proWindow" id="pro_add" class="sty_btn">{$lang->add_new_project}</a>
	</div>
	
	<div class="t_pagination" cond="$page_navigation">
		<a href="{getUrl('page','')}" class="prevEnd"><span class="icon"></span>{$lang->first_page}</a>
		<!--@while($page_no = $page_navigation->getNextPage())-->
			<!--@if($page == $page_no)-->
				<strong>{$page_no}</strong>
			<!--@else-->
				<a href="{getUrl('page',$page_no)}">{$page_no}</a>
			<!--@end-->
		<!--@end-->
		<a href="{getUrl('page',$page_navigation->last_page)}" class="nextEnd">{$lang->last_page}<span class="icon2"></span></a>
	</div>
	
	<div class="color_dsc">
		<dl>
		<dt><span class="color_1"></span></dt><dd>{$lang->translated}</dd>
		<dt><span class="color_2"></span></dt><dd>{$lang->no_approved}</dd>
		<dt><span class="color_3"></span></dt><dd>{$lang->no_translated}</dd>
		</dl>
	</div>
	
	
</div>
<script >
	window.mid = '{$mid}';
	window.module_srl = '{$module_info->module_srl}';
	window.scope = '{$scope}';
</script>

 